package com.hxht.cmp.service.impl;

import com.hxht.cmp.entity.Video;
import com.hxht.cmp.mapper.VideoMapper;
import com.hxht.cmp.service.VideoService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @author alice on 2017/10/9 0009.
 * @version 1.0
 * @since 1.0
 */
@Service
public class VideoServiceImp implements VideoService {
    @Resource
    private VideoMapper videoMapper;

    @Override
    public Video selectByUid(String uid) {
        Video video = new Video();
        video.setUid(uid);
        return videoMapper.selectOne(video);
    }
}
